﻿Imports MySql.Data

Public Class MySQL
    Public Shared conn As New MySqlClient.MySqlConnection("Server=" & Config.MySQLServer & _
                                                          ";Database=" & Config.MySQLDatabase & _
                                                          ";Uid=" & Config.MySQLUsername & ";Pwd=" _
                                                          & Config.MySQLPassword & ";")
    Public Shared command As MySqlClient.MySqlCommand
    Public Shared dataReader As MySqlClient.MySqlDataReader
    Public Shared trans As MySqlClient.MySqlTransaction

    Public Shared Sub setUp()
        log.log(LogType.MSG_INFO)
        Console.Write("Loading MySQL...")
        conn.Open()
        conn.Close()
        Console.WriteLine("DONE")
    End Sub

End Class
